<html>
<title>@click</title>

<head>
    <script src="./js/vue.js"></script>
    <script>
        window.onload = function () {
            let app = new Vue({
                el: '.container',
                data: {
                },
                methods: {
                    print: function (e) {
                        console.log(e.target.innerHTML);
                        console.log(this);
                    }
                }
            })
        }

    </script>
</head>

<body>
    <div class="container">
        <!-- $event 表示事件对象 -->
        <button @click="print($event)">点击获取事件</button>
    </div>
</body>

</html>